"""
字典：dict
可以被修改
key不可为字典
不支持while 遍历
"""

z = dict()  # z = {}
z["a"] = "A"
z["b"] = "B"
z["c"] = "C"
print(z)
# 修改元素
z["a"] = "AA"
print(z)

z.pop('a')
print("删除元素z.pop('a')")
print("清空元素：z.clear()")
print("获取所有的keys:z.keys()")
print("元素个数：len(z)")
print(max(z))
print(min(z))
for e in z:
    print(z[e])

for k in z.keys():
    print(z[k])
